import request from '@/utils/request'

// 查询仓储记账列表
export function listAccount(query) {
  return request({
    url: '/warehouses/account/list',
    method: 'get',
    params: query
  })
}

// 查询仓储记账详细
export function getAccount(warehouseFeeAccountId) {
  return request({
    url: '/warehouses/account/' + warehouseFeeAccountId,
    method: 'get'
  })
}

// 新增仓储记账
export function addAccount(data) {
  return request({
    url: '/warehouses/account',
    method: 'post',
    data: data
  })
}

// 修改仓储记账
export function updateAccount(data) {
  return request({
    url: '/warehouses/account',
    method: 'put',
    data: data
  })
}

// 删除仓储记账
export function delAccount(warehouseFeeAccountId) {
  return request({
    url: '/warehouses/account/' + warehouseFeeAccountId,
    method: 'delete'
  })
}
